import WorkBox

def Stop(client_socket):
      print("zhantingle a")
      WorkBox.AlterVariable("MechanicalArm_One",False)    #修改全局变量关闭机械
      WorkBox.AlterVariable("MechanicalArm_Two",False)
      WorkBox.AlterVariable("MechanicalArm_Three",False)
      WorkBox.AlterVariable("glass_process",False)
      WorkBox.AlterVariable("photo_shoot",False)
      data=WorkBox.write_responseinfo("Stop"," ","OK")
      WorkBox.send_data(client_socket, data)

def StopOne(client_socket):
    WorkBox.AlterVariable("MechanicalArm_One",False)
    data=WorkBox.write_responseinfo("MechanicalArm_One_Stop"," ","OK")
    WorkBox.send_data(client_socket,data)

def StopTwo(client_socket):
    WorkBox.AlterVariable("MechanicalArm_Three",False)
    data=WorkBox.write_responseinfo("MechanicalArm_Two_Stop"," ","OK")
    WorkBox.send_data(client_socket,data)
    
def StopThree(client_socket):
    WorkBox.AlterVariable("MechanicalArm_Three",False)
    data=WorkBox.write_responseinfo("MechanicalArm_Three_Stop"," ","OK")
    WorkBox.send_data(client_socket,data)

def StopDetection(client_socket):
    WorkBox.AlterVariable("glass_process", False)
    WorkBox.AlterVariable("photo_shoot", False)
    data=WorkBox.write_responseinfo("StopDetection_Stop"," ","OK")
    WorkBox.send_data(client_socket,data)

